Add cpufreq sanity check
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 9 Mar 2010 09:59:59 +0000 (09:59 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 9 Mar 2010 09:59:59 +0000 (09:59 +0000)
commit0e2f4c8cf08ea7da9a1c0fde256950cd33d1ee56
tree6d7a5e5514be4373b867430f3265bde70f13e9a0
parent9e4f8153248f3db4e240e803759c764d83a0e54c
Add cpufreq sanity check

This fixes bug 1585 http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D1585

root cause: with incorrect BIOS info, cpufreq driver may not start. in
this case, if user use xenpm to manipulate cpufreq driver, NULL
pointer will cause xen panic. this patch add the sanity check and
warning info to fix this issue.

Signed-off-by: Yu Ke <ke.yu@intel.com>
xen/drivers/cpufreq/cpufreq.c
xen/drivers/cpufreq/cpufreq_ondemand.c